// actions/authActions.js
export const setToken = (token) => ({
    type: 'SET_TOKEN',
    payload: token,
  });
  
  export const setUser = (user) => ({
    type: 'SET_USER',
    payload: user,
  });